package com.ffapp.f9164.td.bean;

import java.util.List;

public class ParamListData extends BasisBean {


	public ParamListData(){

	}

	public ParamListData(ParamListData paramListData,String value){
		paramListData.setValue(value);
	}

	public ParamListData(String name, String value, String action){
		this.name = name;
		this.value = value;
		this.action = action;
	}

	public ParamListData(String name, int type, String value, String action){
		this.name = name;
		this.type = type;
		this.value = value;
		this.action = action;
	}

	public ParamListData(String name, int type, String value, String action,String unit,boolean enable){
		this.name = name;
		this.type = type;
		this.value = value;
		this.action = action;
        this.unit = unit;
		this.enable = enable;
	}

	public ParamListData(String name, int type, String value, String action,String unit,boolean enable,boolean change){
		this.name = name;
		this.type = type;
		this.value = value;
		this.action = action;
		this.unit = unit;
		this.enable = enable;
		this.change = change;
	}

	public ParamListData(String name, int type, String value, String action,String unit){
		this.name = name;
		this.type = type;
		this.value = value;
		this.action = action;
		this.unit = unit;
	}


	public ParamListData(String name, int type, List<String> values, String action){
		this.name = name;
		this.type = type;
		this.action = action;
		this.values = values;
	}

	public ParamListData(String name, int type, String key, List<String> values, String action){
		this.name = name;
		this.type = type;
		this.key = key;
		this.action = action;
		this.values = values;
	}

	public ParamListData(String name, int type, String key, List<String> values, String action,boolean enable){
		this.name = name;
		this.type = type;
		this.key = key;
		this.action = action;
		this.values = values;
		this.enable = enable;
	}

	public ParamListData(String name, int type, String key, List<String> values, String action,String unit,boolean enable){
		this.name = name;
		this.type = type;
		this.key = key;
		this.action = action;
		this.values = values;
		this.unit = unit;
		this.enable = enable;
	}

	public ParamListData(String name, int type, String key, List<String> values, String action,String unit,boolean enable, boolean change){
		this.name = name;
		this.type = type;
		this.key = key;
		this.action = action;
		this.values = values;
		this.unit = unit;
		this.enable = enable;
		this.change = change;
	}

	public ParamListData(String name, int type, String key, List<String> values, String action,String unit){
		this.name = name;
		this.type = type;
		this.key = key;
		this.action = action;
		this.values = values;
		this.unit = unit;
	}

	public ParamListData(String name, int type, String value, List<String> values, String action, String key, int isOpen, String unit) {
		this.name = name;
		this.type = type;
		this.value = value;
		this.values = values;
		this.action = action;
		this.key = key;
		this.isOpen = isOpen;
		this.unit = unit;
	}

	private String name;			//要素名称
	private int type;    // 1 = spinner              2 = edit       3  = 开关按钮     4=不同按钮（这里指）    86 = 只是启到分隔的作用
	private String value;			//edittext所需要的值
	private List<String> values;		//spinner所需要的值
	private String action;   //记录AT指令
	private String key;     //蓝牙返回spinner所选择的文字
	private int isOpen;			//0：关，1：开
	private String unit;			//单位


	private boolean enable;			//是否可写
	private boolean change;			//是否被修改过



	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getValue() {
		return value;
	}

	public List<String> getValues() {
		return values;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setValues(List<String> values) {
		this.values = values;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
//	public List<String> getValueByType(){
//		List<String> arrlist = new ArrayList<>();
//		switch (getType()){
//			case 1:
//				arrlist.addAll(getValues());
//				break;
//			case 2:
//				arrlist.add(getValue());
//				break;
//		}
//		return arrlist;
//	}

	public int getIsOpen() {
		return isOpen;
	}

	public void setIsOpen(int isOpen) {
		this.isOpen = isOpen;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public boolean getChange() {
		return change;
	}

	public void setChange(boolean change) {
		this.change = change;
	}


}
